package com.example.tys.baseapplication.net_tcp.frame.core;


import com.example.tys.baseapplication.net_tcp.frame.ConnectStatus;
import com.example.tys.baseapplication.net_tcp.frame.ListenCallback;

import java.net.InetSocketAddress;

/**
 * Created by tys on 2019/4/30.
 */

public interface ITcpClient<Request, Response> extends IClient<Request, Response>{

    void connect(InetSocketAddress inetSocketAddress, ListenCallback callback);

    void disConnect();

    ConnectStatus getConnectStatus();

}
